from PyQt6.QtCore import QUrl
from PyQt6.QtWebEngineWidgets import QWebEngineView


class WebWindow(QWebEngineView):

    def __init__(self, text: str, url: str, parent=None):
        super().__init__(parent)

        self.setObjectName(text)

        self.url = QUrl(url)
        self.setUrl(self.url)
